package cn.zn.modules.zzsys.cur.service;

import cn.zn.framework.common.utils.PageUtils;
import cn.zn.modules.zzsys.cur.entity.TSysUserEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author zn
 * @email zhunahao@qq.com
 * @date 2020-11-23 17:45:29
 */
public interface TSysUserService extends IService<TSysUserEntity> {

    PageUtils queryPage(TSysUserEntity tSysUser, IPage<TSysUserEntity> page);

    /**
     * 注册用户
     *
     * @param username
     * @param password
     * @param nickName
     * @param headimgurl
     * @param mobile
     * @param gender
     * @return
     */
    TSysUserEntity saveForReg(String username, String password, String nickName,
                              String headimgurl, String mobile, Integer gender, String teacherId, String deptId);
}

